package com.woniuxy.core.mapper;

import com.woniuxy.entity.PaymentRecord;
import com.woniuxy.entity.ShopOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author hq
 * @Date 2025/7/14$ 19:48$
 * @Description TODO
 * @Params $
 * @Return $
 **/
@Mapper
public interface PaymentMapper {
    void insert(PaymentRecord paymentRecord);

    PaymentRecord selectByTransactionId(String outTradeNo);

    void updateById(PaymentRecord paymentRecord);
    @Select("select * from shop_order where id = #{orderId}")
    ShopOrder getOrderInfo(Integer orderId);
}
